<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">

    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="/Scripts/vue-2.6.12.js"></script>

    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">演示</a>
        <a>
          <cite>导航元素</cite></a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body" id="consult">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <input class="layui-input" placeholder="开始日" name="start" id="start">
            <input class="layui-input" placeholder="截止日" name="end" id="end">
            <div class="layui-input-inline">
                <select name="contrller">
                    <option>支付状态</option>
                    <option>已支付</option>
                    <option>未支付</option>
                </select>
            </div>
            <div class="layui-input-inline">
                <select name="contrller">
                    <option>支付方式</option>
                    <option>支付宝</option>
                    <option>微信</option>
                    <option>货到付款</option>
                </select>
            </div>
            <div class="layui-input-inline">
                <select name="contrller">
                    <option value="">咨询状态</option>
                    <option value="0">待确认</option>
                    <option value="1">已确认</option>
                    <option value="2">已收货</option>
                    <option value="3">已取消</option>
                    <option value="4">已完成</option>
                    <option value="5">已作废</option>
                </select>
            </div>
            <input type="text" name="username"  placeholder="请输入订单号" autocomplete="off" class="layui-input">
            <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
    </div>
    <xblock>
        <button class="layui-btn layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>
        <button class="layui-btn" onclick="x_admin_show('添加用户','./consult-add.html')"><i class="layui-icon"></i>添加</button>
        <span class="x-right" style="line-height:40px">共有数据：{{List.total}} 条</span>
    </xblock>
    <table class="layui-table">
        <thead>
        <tr>
            <th>
                <div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
            </th>
            <th>咨询订单id</th>
            <th>姓  名</th>
            <th>咨询项目</th>
            <th>主诊医生</th>
            <th>咨询价格</th>
            <th>治疗方式</th>
            <th>患者病情</th>
            <th >操作</th>
        </tr>
        </thead>
        <tbody>
        <tr v-for="(temp,i) in List.list">
            <td>
                <input  type="checkbox" @click="updateSelection($event,temp.id)">
            </td>
            <td>{{temp.consultId}}</td>
            <td>{{temp.username}}</td>
            <td>{{temp.consultProject}}</td>
            <td>{{temp.doctor}}</td>
            <td>{{temp.consultPrice}}</td>
            <td>{{temp.treatmentMethods}}</td>
            <td>{{temp.details}}</td>
            <td class="td-manage">
                <a title="查看"  onclick="x_admin_show('编辑','consult_edit.html')" href="javascript:;" @click="selectByPrimaryKey(temp.consultId)">
                    <i class="layui-icon">&#xe63c;</i>
                </a>
                <a title="删除" @click="deleteByPrimaryKey(temp.consultId)" href="javascript:;">
                    <i class="layui-icon">&#xe640;</i>
                </a>
            </td>
        </tr>
        </tbody>
    </table>
    <div class="page">
        <div>
            <a class="num" href="" @click.prevent="selectPage(1)">首页</a>
            <a class="prev" href="" @click.prevent="selectPage(List.pageNum-1)" v-show="List.pageNum>1">&lt;&lt;</a>
            <a class="num" href="" v-show="List.pageNum>1" @click.prevent="selectPage(List.pageNum-1)">{{List.pageNum-1}}</a>
            <span class="current">{{List.pageNum}}</span>
            <a class="num" href="" v-show="List.pageNum<List.pages" @click.prevent="selectPage(List.pageNum+1)">{{List.pageNum+1}}</a>
            <a class="next" href="" @click.prevent="selectPage(List.pageNum+1)" v-show="List.pageNum<List.pages">&gt;&gt;</a>
            <a class="num" href="" @click.prevent="selectPage(List.pages)">尾页</a>
        </div>
    </div>


</div>

<script src="/admin/js/consult.js" type="text/javascript"></script>
</body>

</html>